Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use status instead of targetStatus in UpdateWorker. #29

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

karthikbekalp
Copy link
Contributor

@karthikbekalp karthikbekalp commented Sep 13, 2023

Note this change is not ready to be merged

What was the problem/requirement? (What/Why)

UpdateWorker was updated to use the new 'status' field instead of 'targetStatus' in Deadline Cloud service. This is because UpdateWorker is a synchronous API i.e. the status updates are instantaneous. Hence, updating the worker agent to use the new field.

What was the solution? (How)

Renamed status from targetStatus.

What is the impact of this change?

The WA will use the new field and hence that allows Deadline Cloud to remove targetStatus field.

How was this change tested?

This is a rename so assuming that the unit tests will fail if there are any issues.

Is this a breaking change?

No

Signed-off-by: Karthik Bekal Pattathana <pattatk@dev-dsk-pattatk-2b-68804932.us-west-2.amazon.com>
@@ -416,7 +416,10 @@ def _transition_to_stopping(self, timeout: timedelta) -> None:
given additional new tasks to work on.
"""
request = dict[str, Any](
farmId=self._farm_id, fleetId=self._fleet_id, workerId=self._worker_id, state="STOPPING"
Copy link
Contributor Author

@karthikbekalp karthikbekalp Sep 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this worked before and was not updated when undergoing renames from state to targetStatus earlier ...

@karthikbekalp karthikbekalp marked this pull request as ready for review September 13, 2023 14:46
@karthikbekalp karthikbekalp requested a review from a team as a code owner September 13, 2023 14:46
@epmog epmog merged commit a22e7df into mainline Sep 14, 2023
5 checks passed
@epmog epmog deleted the karthikbekalp/rnTS2Status branch September 14, 2023 15:30
gmchale79 pushed a commit that referenced this pull request Mar 11, 2024
Signed-off-by: Karthik Bekal Pattathana <pattatk@dev-dsk-pattatk-2b-68804932.us-west-2.amazon.com>
Co-authored-by: Karthik Bekal Pattathana <pattatk@dev-dsk-pattatk-2b-68804932.us-west-2.amazon.com>
Signed-off-by: Graeme McHale <gmchale@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants